package com.sport.service;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sport.entity.SysUser;
import com.sport.entity.dto.Option;

import java.util.List;

public interface SysUserService extends IService<SysUser> {

    List<Option> getRoles(Integer id);

    void insertRole(Integer id, List<String> roleIds);

    void deleteRole(Integer id);

    List<String> listRoleByUserId(String toString);

    List<String> listPermissionByRoleCode(String roleCode);

    List<JSONObject> listMenu();


    boolean updatePassword(String userId, String newPassword, String newSalt);
}
